<?php
namespace Destroyer\Http\Responses;

use Illuminate\Http\JsonResponse;

class AdminResponse
{

	public static function success($data, $message = 'Operation successful', $code=0)
	{
        return response()->json([
            'code' => $code,
            'message' => $message,
            'data' => $data
        ]);
	}

}
